#!/usr/bin/env groovy

def call(deploylist,DEPLOY_MAP) {
    DEPLOY_MAP = Eval.me(DEPLOY_MAP)
    def update_job_list = []
    for(int i =0 ;i < deploylist.size(); i++) {
        def job_name = jobmap.get(deploylist[i])
        update_job_list.add(job_name)
    }
    return update_job_list
}
